package com.jlcindia;

public class Lab5 {

	public static void main(String[] args) {
	new Employee(99).show();
	System.out.println();
	new Employee("Ravi").show();
	System.out.println();
	new Employee(98,"kumar").show();
	System.out.println();
	new Employee(45,"Singh",7795484339L).show();
	System.out.println();
	new Employee(58,"Ajit",9535065781L,85000.0F).show();
	System.out.println();
	new Employee(6599990788L,"Chandan",78562.00F).show();

	}

}
class Employee{
	int eid;
	String name;
	long phone;
	float salary;
	Employee(int eid){
		super();
		System.out.println("--Employee(int)--\t:"+this);
		this.eid=eid;
	}
	Employee(String name){
		super();
		System.out.println("--Employee(String)--\t:"+this);
		this.name=name;
	}
	Employee(int eid,String name){
		this(eid);
		//super();
		System.out.println("--Employee(int,String)--\t:"+this);
		//Employee(eid);
		//this(eid);
		this.name=name;
	}
	Employee(int eid,String name,long phone){
		this(eid,name);
		System.out.println("--Employee(int,String,long)--\t:"+this);
		this.phone=phone;
	}
	Employee(int eid,String name,long phone,float salary){
		this(eid,name,phone);
		System.out.println("--Employee(int,String,long,float)--\t:"+this);
		this.salary=salary;
	}
	Employee(long phone,String name,float salary){
		this(name);
		System.out.println("--Employee(long,String,float)--\t:"+this);
		this.phone=phone;
		this.salary=salary;
	}
	void show(){
		System.out.println(eid+"\t"+name+"\t"+phone+"\t"+salary);
	}
	
}
